//
//  UserCell.m
//  彩票
//
//  Created by 冀柳冲 on 2017/8/15.
//  Copyright © 2017年 冀柳冲. All rights reserved.
//

#import "UserCell.h"
#import <UIImageView+WebCache.h>
@implementation UserCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    ViewRadius(_head, _head.width/2);
    self.name.canPerformCopyAction = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(UserInfo *)model{
    _model = model;
    [_head sd_setImageWithURL:[NSURL URLWithString:model.userLogoUrl]];
    _name.text = [NSString stringWithFormat:@"%@ - %@",model.ownerAlias,model.ownerUserId];
    _money.text = [NSString stringWithFormat:@"投注额: %.2f万",(float)model.totalFee/10000];
    
}


@end
